﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Immigrationland.net
{
    public partial class Contact : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "sherif.business@hotmail.com", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You: Travel Saver", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "sherif.business@hotmail.com",
            "root@bpwe.net", "Nv4c7df7", "Contact Notification", "Travel Saver", "",


           dfsName.Text + "<br/>" + "Email Address:" + dfsEmail.Text + "<br/>" + "Date of Birth:" + MonthDDL.Text + DayDDL.Text + "<br/>" + "How did you hear about us:" + dfsHear.Text + "<br/>" + "Other:" + dfsOther.Text, Guid.NewGuid(), "", "", "");

            Response.Redirect("Thanks.html");

        }
    }
}